var mongodb = require('./config.js');
var Schema = mongodb.Schema;
var AppSchema = new Schema({
         liked:[{ type: String, default:'' }],
         time: { type: Date, default: Date.now },
         src:String,
         title:String,
         description:String,
         content:String,
         like:{ type: Number, default:0 },
         isliked:{type:Boolean,default:false},
         mark:{ type: Number, default:0 },
         markList:[
           {
             userName:String,
             userId:String,
             markTime: { type: Date, default: Date.now },
             userIcon:String,
             markContent:String
           }
         ]
});
var AppInfo = mongodb.model("AppInfo", AppSchema);
module.exports = AppInfo;
